package vn.edu.hut.soict.lsom.utils;


import java.io.BufferedReader;
import java.io.FileReader;
import java.io.IOException;
import java.util.Iterator;
import java.util.List;
import java.util.Map;
import java.util.Map.Entry;

public class DCIn {
	public static void simpleRead(Map<String, String> map12, Map<String, String> map21, String name) throws IOException {
		FileReader fr = new FileReader(name);
		BufferedReader br = new BufferedReader(fr);

		{
			int skipped = 0;
			String line = null;
			while ((line = br.readLine())!=null){
				String[] array = line.split("\t");
				if (array.length>=2){
					map12.put(array[0], array[1]);
					map21.put(array[1], array[0]);
				} else {
					skipped++;
				}
			}			
		}
		br.close();
	}
}
